#include <stdio.h>
#include <stdlib.h>

int main()
{
    int a,b,c=0;
    int*p1,*p2;
    scanf("%d %d",&a,&b);
    p1=&a;
    p2=&b;
    c=*p1;
    *p1=*p2;
    *p2=c;
    printf("%d %d",*p1,*p2);
    return 0;
}
